import { useRequest } from 'umi';

export const SourceBidderManageService = () => {
  const getDataSource = async () => {
    return [
      {
        id: 31030,
        noticeTitle: '传送带',
        noticeInfo: '暂无',
        bidTime: '2023-03-03',
        factSum: '1200.00',
        startTime: '2023-03-03',
        endTime: '2023-03-03',
        attachURL: 'www.baidu.com',
      },
      {
        id: 31031,
        noticeTitle: '合金材料',
        noticeInfo: '暂无',
        bidTime: '2023-03-03',
        factSum: '1200.00',
        startTime: '2023-03-03',
        endTime: '2023-03-03',
        attachURL: 'www.baidu.com',
      },
      {
        id: 31032,
        noticeTitle: '特质颜料',
        noticeInfo: '暂无',
        bidTime: '2023-03-03',
        factSum: '1200.00',
        startTime: '2023-03-03',
        endTime: '2023-03-03',
        attachURL: 'www.baidu.com',
      },
    ];
  };

  const { data: SourceBidderManageDataSource, loading, run: requestManage } = useRequest(getDataSource);

  return {
    SourceBidderManageDataSource,
    requestManage,
    loading,
  };
};
